package Basic;

import java.util.HashMap;

public class People {

	int id;
	String name;
	String sex;
	int age;
	
	public People(int id,String name) {

		this.id=id;
		this.name=name;
	}

	public People(String sex,int age,int id,String name) {
		this(id, name);//通过this来调用其他的构造函数;
		this.sex=sex;
		this.age=age;
	}
	
	public static void main(String []args) {
		Integer i=new Integer(2);
		Integer y=new Integer(2);
		System.out.println(i.equals(y));
		System.out.println(i==y);
		
		HashMap hashMap=new HashMap();
		hashMap.put(y, hashMap);
	}
}
